C#
VB
C++
Extension method provides a foreach like wrapper for IEnumerable.
<ExtensionAttribute()>
Public Shared Sub ForEach(Of T)( _
ByVal source As IEnumerable(Of T), _
ByVal action As Action(Of T) _
)
[ExtensionAttribute()]
public:
static void ForEachgeneric<typename T>
(
IEnumerable<T^>^ source,
Action<T^>^ action
)
source
The source enumeration
action
The action to perform.
T
The IEnumerable object to iterate over.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET